Skip to main content

All Questions

Tagged with
1vote
1answer
90views

How to configure Debian sudo to prompt for password at the beginning of every login session?

I am running Debian 12 and working on hardening my system. I'm looking at the sudo behavior at the moment. As expected, if I ssh into the system and run a sudo command, it prompts the first time, but ...
BobDoolittle's user avatar
0votes
1answer
51views

How to Load Personal .bash_rc for SU User via Direct SSH command

Problem Multiple engineers are using same machine with same loginuser and history gets loaded with others' people commands. Update: People login via private ssh keys (pub added/removed via trustedhosr)...
Vladimir Djuricic's user avatar
0votes
3answers
73views

What are the options to transfer a package from source machine to target machine over the network with only sudo user login via ssh?

adm package folder structure: /opt/adm ├── bin ├── cli ├── dev ├── mod ├── pkg └── sys root@deb4 /opt/adm # rwx To change permissions use this command syntax: $ sudo chmod <octal> <...
SystemTheory's user avatar
2votes
0answers
331views

How to automate Ansible SSH login with Duo MFA for sudo access

The problem: I'm trying to run Ansible on a Mac to remotely configure a linux (ubuntu) server that requires MFA access for sudo usage. My goal is to keep the MFA in place (as required by our security ...
twoLeftFeet's user avatar
8votes
1answer
1kviews

sudo persistent across ssh logins

When I have two separate terminals logged in via SSH to my server, I noticed then when one of the terminals enters password for sudo, the other terminal has passwordless sudo access. This seems ...
Barry's user avatar
2votes
1answer
229views

Broken Debian 10 stable server by installing 3 or 4 small testing packages... Can't SSH anymore

I wanted to install a newer version of clone on my Debian 10 stable server, so I started with following the tutorial in the first comment on this post. Then, (from memory), I ran on my server ...
Ul Tome's user avatar
0votes
1answer
199views

Executing sudo commands keep asking password although i've set visudo

I'm configuring remote deployment using rsync over ssh and there is need to execute a sudo command without password. This is my visudo: # Allow user to execute specified commands without password ...
I have 10 fingers's user avatar
0votes
1answer
244views

Disable password login but keep sudo -v?

I'm on a Raspberry Pi, but I don't think this question is specific to Raspberry Pi OS. I only use an SSH key to log in as user pi. I have a script that calls sudo -v which currently asks for the ...
AndreKR's user avatar
  • 1,198
-1votes
1answer
481views

Can I disable password login but still allow sudo?

While answering comments I realized what I should really be asking, so I asked a new question. I'm on a Raspberry Pi, but I don't think this question is specific to Raspberry Pi OS. I only use an SSH ...
AndreKR's user avatar
  • 1,198
0votes
2answers
98views

Letting a stranger in safely

I have setup a really tiny wireguard server in my home, with my public IP and all. I have used NAT to hopefully protect myself as much as possible, set strong passwords... All these things. A friend ...
Orsu's user avatar
  • 111
0votes
0answers
56views

Grepped /sys/ directory, now device won't respond

I recursively grepped the /sys/ directory for the string "hello" over SSH: sudo grep -r hello /sys/ I'm using a Raspberry Pi 4B 8gig. After performing this command, the rpi won't respond to ...
Firedestroyer's user avatar
0votes
1answer
103views

sudo through ssh on cron

I have this command which runs properly when executed on terminal: ssh someuser@someserver -t "sudo systemctl start someservice" No password asked for ssh, there is a public key to connect, ...
Krackout's user avatar
1vote
1answer
165views

Suggestion for sudo over ssh

I need two suggestions for making my script working from local server as well as ssh execution 1. How to update the sudoers In server i have a path /var/log/data/status/ all files of parent and ...
iamsage's user avatar
1vote
1answer
3kviews

Using sudo over ssh: sudo command not found

I am trying to run a command on a remote server as the superuser through ssh. For that, I pass the command with ssh -t from macOS as follows: bash-5.2$ ssh -t [email protected] "sudo echo Hi" ...
Shubham Johri's user avatar
1vote
0answers
256views

Allow remote (SSH, XRDP, etc) sudo users to suspend/shutdown without privilege elevation

Sudo users do not seem to need privilege elevation to suspend/shutdown the computer when they are doing so locally, but require privilege elevation (e.g., need sudo shutdown instead of just shutdown). ...
Damn Vegetables's user avatar

153050per page
close